package com.cntcdt.api.service;

import java.util.List;

import com.cntcdt.api.db.model.AdminUserModel;

public interface AdminUserService {
	public int insertModel(AdminUserModel addLineUser);
	
	public AdminUserModel findByUsername(String username,String password);
	
	public AdminUserModel findById(Integer id);
	
	/**
	 * 查询后台用户是否具有请求接口的权限
	 * @param id
	 * @param bgType
	 * @return
	 */
	public AdminUserModel findByIdAndAuthPower(Integer id,int bgType);
	
	public List<AdminUserModel> findBySortTime(int sortTime);
	
	public AdminUserModel findByUsername2(String username);
	
	public boolean updateModel(AdminUserModel addLineUser);
	
	public AdminUserModel findByAccessToken(String accessToken);
	
	public List<AdminUserModel> findByAddLineUser();
	
	public List<AdminUserModel> findByAdminGroupId(Integer adminGroupId);
}
